
import App from './App.vue'
import VueRouter from "vue-router"
import VueResource from "vue-resource"
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import Vue from 'vue'

//自行添加的组件
import firstPage from "./components/firstPage.vue"
import loading from "./components/loading.vue"
import register from "./components/register.vue"
import home from "./components/home.vue"
import tabbar from "./components/tabbar.vue"
import shopping from "./components/shopping.vue"
Vue.use(MintUI);
Vue.use(ElementUI);
Vue.use(VueRouter);
Vue.use(VueResource);




// 配置路由
const router = new VueRouter({
  routes: [
     {
        path: '/firstPage',
        component:firstPage,
      },
     {
        path: '/register',
        component:register,
     },
     {
        path: '/loading',
        component:loading,
     },
     {
      path: '/home',
      component:home,
     },
     {
      path: '/tabbar',
      component:tabbar,
     },
     {
      path: '/shopping',
      component:shopping,
     }

  ]
})

new Vue({
  el: '#app',
  router,
  render: h => h(App)
})

